package com.hotel.mapper;

import com.hotel.entity.ShoppingCart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 购物车 Mapper 接口
 * </p>
 *
 * @author Lin
 * @since 2022-06-09
 */
public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> {

    List<ShoppingCart> getCartList(@Param(value = "nickName") String nickName);

    int clearCart(@Param(value = "nickName") String nickName);

}
